package com.zhy.sping.es.entity;

import com.zhy.sping.config.ElastConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

import javax.persistence.Id;

@Data
@NoArgsConstructor
@Document(indexName = ElastConfig.ELAST_NAME)
@AllArgsConstructor
public class CourseDocument {
    //数据库一致
    @Id
    private Integer id;
    //讲师名称
    private String taname;
    //课程名称
    private String name;
}
